-- 按键
local KEY = {}

KEY.LBUTTON		= 0x00 --鼠标左
KEY.RBUTTON		= 0x01 --鼠标右
KEY.MBUTTON		= 0x02 --鼠标中

KEY.ESCAPE		= 0x1B --ESC
KEY.BACKSPACE	= 0x08 --退格
KEY.TAB			= 0x09
KEY.ENTER		= 0x0D
KEY.SPACE		= 0x20 --空格

KEY.SHIFT		= 0x10
KEY.CTRL		= 0x11
KEY.ALT			= 0x12

KEY.LWIN		= 0x5B --左WIN
KEY.RWIN		= 0x5C --右WIN
KEY.APPS		= 0x5D

KEY.PAUSE		= 0x13
KEY.CAPSLOCK	= 0x14
KEY.NUMLOCK		= 0x90
KEY.SCROLLLOCK	= 0x91

KEY.PGUP		= 0x21
KEY.PGDN		= 0x22
KEY.HOME		= 0x24
KEY.END			= 0x23
KEY.INSERT		= 0x2D
KEY.DELETE		= 0x2E

KEY.LEFT		= 0x25 --左
KEY.UP			= 0x26 --上
KEY.RIGHT		= 0x27 --右
KEY.DOWN		= 0x28 --下

KEY._0			= 0x30
KEY._1			= 0x31
KEY._2			= 0x32
KEY._3			= 0x33
KEY._4			= 0x34
KEY._5			= 0x35
KEY._6			= 0x36
KEY._7			= 0x37
KEY._8			= 0x38
KEY._9			= 0x39

KEY.A			= 0x41
KEY.B			= 0x42
KEY.C			= 0x43
KEY.D			= 0x44
KEY.E			= 0x45
KEY.F			= 0x46
KEY.G			= 0x47
KEY.H			= 0x48
KEY.I			= 0x49
KEY.J			= 0x4A
KEY.K			= 0x4B
KEY.L			= 0x4C
KEY.M			= 0x4D
KEY.N			= 0x4E
KEY.O			= 0x4F
KEY.P			= 0x50
KEY.Q			= 0x51
KEY.R			= 0x52
KEY.S			= 0x53
KEY.T			= 0x54
KEY.U			= 0x55
KEY.V			= 0x56
KEY.W			= 0x57
KEY.X			= 0x58
KEY.Y			= 0x59
KEY.Z			= 0x5A

KEY.GRAVE		= 0xC0
KEY.MINUS		= 0xBD
KEY.EQUALS		= 0xBB
KEY.BACKSLASH	= 0xDC
KEY.LBRACKET	= 0xDB
KEY.RBRACKET	= 0xDD
KEY.SEMICOLON	= 0xBA
KEY.APOSTROPHE	= 0xDE
KEY.COMMA		= 0xBC
KEY.PERIOD		= 0xBE
KEY.SLASH		= 0xBF

KEY.NUMPAD0		= 0x60 --小键盘数字
KEY.NUMPAD1		= 0x61
KEY.NUMPAD2		= 0x62
KEY.NUMPAD3		= 0x63
KEY.NUMPAD4		= 0x64
KEY.NUMPAD5		= 0x65
KEY.NUMPAD6		= 0x66
KEY.NUMPAD7		= 0x67
KEY.NUMPAD8		= 0x68
KEY.NUMPAD9		= 0x69

KEY.MULTIPLY	= 0x6A
KEY.DIVIDE		= 0x6F
KEY.ADD			= 0x6B
KEY.SUBTRACT	= 0x6D
KEY.DECIMAL		= 0x6E

KEY.F1			= 0x70
KEY.F2			= 0x71
KEY.F3			= 0x72
KEY.F4			= 0x73
KEY.F5			= 0x74
KEY.F6			= 0x75
KEY.F7			= 0x76
KEY.F8			= 0x77
KEY.F9			= 0x78
KEY.F10			= 0x79
KEY.F11			= 0x7A
KEY.F12			= 0x7B

return KEY